<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			var array1 = new Array(7);
			console.log(array1.length);//7
			var array2 = new Array(100, 'abc', true);
			console.log(array2.length);
			//创建一个空数组 List<String> list = new ArrayList<String>(); 
			var array = new Array();
			array[0] = 'aa';
			console.log(array);//['aa']
			console.log(array.length);//1
			array[1] = true;
			console.log(array);//['aa', true]
			console.log(array.length);//2
			
			//
			var arr = new Array();
			arr.push('zhansgan');
			console.log(arr);
			arr.push(false);
			console.log(arr);
			arr.push(45)
			console.log(arr);['zhansgan', false, 45]
			console.log(arr.pop());
			console.log(arr);//['zhansgan', false]
		</script>
	</body>
</html>